package cn.rengy.web.framework.wxmp.upload;

import java.io.IOException;
import java.util.Map;

import jakarta.servlet.http.HttpServletRequest;

import org.apache.commons.collections4.MapUtils;
import org.apache.http.client.ClientProtocolException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.rengy.lang.ResultEntity;
import cn.rengy.tool.core.util._NumberUtils;
import cn.rengy.web.framework.sys.pub.upload.service.PubFileService;


/**
 * 
 * 
 */
@Controller
@RequestMapping
public class WxUploadController {
	
	@Autowired
	private WxUploadService wxUploadService;
	
	@RequestMapping(value="/authenticated/wxImage")
	@ResponseBody
    public ResultEntity wxUploadImage(@RequestBody Map<String,Object> paramMap) throws ClientProtocolException, IOException{
		return ResultEntity.ok(wxUploadService.wxTempMedia(paramMap));
    }
	
	
	
}
